package cn.wolfcode.orderServer.web.controller;

import cn.wolfcode.orderServer.domain.Order;
import cn.wolfcode.orderServer.service.IOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class OrderController {


    @Autowired
    private IOrderService orderService;

    @RequestMapping("/get")
    public Order get(Long userId,Long productId){
        log.info("调用订单服务的表现层");
        return orderService.get(userId,productId);
    }

}
